<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

	<!-- 
		Replace path to template, title, header and body
		with actual data.
	 -->
	<ui:composition template="/templates/template.xhtml">
			<ui:define name="pageTitle">Listar Cliente</ui:define>
			<ui:define name="pageHeader">Listar Clientes</ui:define>
			<ui:define name="body">
				<h:form id="lista">
					<h:dataTable value="#{clienteBean.lista}" var="cliente" border="1">
						<f:facet name="header">Listagem de clientes</f:facet>
						<h:column>
							<f:facet name="header">Nome</f:facet>
							#{cliente.nome}
						</h:column>
						<h:column>
							<f:facet name="header">E-mail</f:facet>
							#{cliente.email}
						</h:column>
						<h:column>
							<f:facet name="header">Endereço</f:facet>
							#{cliente.endereco}
						</h:column>
						<h:column>
							<f:facet name="header">CPF</f:facet>
							#{cliente.cpf}
						</h:column>
						<h:column>
							<f:facet name="header">Renda</f:facet>
							<h:outputText value="#{cliente.renda}">
							<f:convertNumber currencyCode="BRL" type="currency" />
							</h:outputText>
							
						</h:column>
						<h:column>
							<f:facet name="header">Cadastro</f:facet>
							<h:outputText value="#{cliente.dataCadastro}">
								<f:convertDateTime dateStyle="medium"/>
							</h:outputText>
						</h:column>
					</h:dataTable>
				</h:form>
			</ui:define>
	</ui:composition>

</html>